<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Project Images</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }

        .image-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px; /* 间距 */
        }

        .image-item {
            flex: 0 1 calc(33.33% - 20px); /* 每行显示3张图片，可以根据需要调整 */
            margin-bottom: 20px;
        }

        .image-item img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>

<h2>Project Images</h2>

<div class="image-container">
    <!-- 使用Thymeleaf迭代显示多张图片 -->
    <div th:each="imageUrl : ${imageUrls}" class="image-item">
        <img th:src="${imageUrl}" alt="Project Image">
    </div>
</div>

</body>
</html>
